package com.jye.rseven.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "c_comments")
public class Comments implements Serializable {
    private int id;
    private int uId;//用户id
    private int type;//复用类型
    private int pId;//父id
    private int status;//状态
    private String content;//内容
    private Date createTime;//创建时间
    @Transient
    private User user;//用户信息
    @Transient
    private List<CommentsReply> commentsReplyList;//回复评论的信息

}
